<?php
echo $content;

if (isset($js)) {
    foreach ($js as $script)
    {
        echo '<script src="'.$this->basePath().'/js/widget/'.$script.'.js"></script>';
    }
}

